package com.panshi.service.impl;

import com.panshi.entity.AppAnswer;
import com.panshi.service.FeignAnswerApiClient;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class AnswerClientFallbackFactory/* implements FallbackFactory */{

 /*   public Object create(Throwable cause) {
        // 服务降级
        return new FeignAnswerApiClient() {

            public List<AppAnswer> queryAnswerByMid(Integer matterId) {
                return new ArrayList<>();
            }

            @Override
            public void updatePariseTread(Integer answerId, String code) {
                System.out.println("===================================================");
            }
        };
    }*/
}
